<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>部门管理模块</title>
<link rel="stylesheet" href="resources/bootstrap.min.css">  
<script src="resources/jquery.min.js"></script>
<script src="resources/bootstrap.min.js"></script>
<script src="resources/layer/layer.js"></script>
</head>
<body>
	<div class="jumbotron text-center" style="margin-bottom:0">
		<h3>部门管理列表</h3>
		<button type="button" class="btn btn-success pull-right" onclick="location='add'">添加部门</button>
		<table class="table table-bordered table-hover">
        <caption>•部门管理</caption>
	    <thead>
	        <tr>
	        	<th class="text-center">部门ID</th>
	            <th class="text-center">部门名称</th>
	            <th class="text-center">部门类型</th>
	            <th class="text-center">部门电话</th>
	            <th class="text-center">部门传真</th>
	            <th class="text-center">部门描述</th>
	            <th class="text-center">上级部门</th>
	            <th class="text-center">成立日期</th>
	        </tr>
	    </thead>
	    <tbody>
	    	<c:forEach var="a" items="${list}">
               <tr>
                  <td>${a.id}</td>
                  <td>${a.name}</td>
                  <td>${a.type}</td>
                  <td>${a.telephone}</td>
                  <td>${a.fax}</td>
                  <td>${a.description}</td>
                  <td>${a.predepartment}</td>
                  <td>${a.date}</td>         
                </tr>
             </c:forEach>
	    </tbody>
	</table>
	</div>
</body>
</html>